import request from '@/utils/request'

/**
* 设备运行记录分页查询
* @param {查询条件} data
*/
export function listCksDeviceRunRecord(query) {
  return request({
    url: 'business/CksDeviceRunRecord/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增设备运行记录
* @param data
*/
export function addCksDeviceRunRecord(data) {
  return request({
    url: 'business/CksDeviceRunRecord',
    method: 'post',
    data: data,
  })
}
/**
* 修改设备运行记录
* @param data
*/
export function updateCksDeviceRunRecord(data) {
  return request({
    url: 'business/CksDeviceRunRecord',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取设备运行记录详情
* @param {Id}
*/
export function getCksDeviceRunRecord(id) {
  return request({
    url: 'business/CksDeviceRunRecord/' + id,
    method: 'get'
  })
}

/**
* 删除设备运行记录
* @param {主键} pid
*/
export function delCksDeviceRunRecord(pid) {
  return request({
    url: 'business/CksDeviceRunRecord/delete/' + pid,
    method: 'delete'
  })
}
// 清空设备运行记录
export function clearCksDeviceRunRecord() {
  return request({
    url: 'business/CksDeviceRunRecord/clean',
    method: 'delete'
  })
}
